#import "UIFont+FMCommon.h"
@implementation UIFont (FMCommon)

+ (UIFont *)American_size:(CGFloat)size {
    UIFont *font = [UIFont fontWithName:@"AmericanTypewriter-CondensedBold" size:size];
    if (font == nil){
        font = [UIFont systemFontOfSize:size];
    }
    return font;
}

+ (UIFont *)Bold_size:(CGFloat)size {
    UIFont *font = [UIFont fontWithName:@"PingFangSC-Bold" size:size];
    if (font == nil){
        font = [UIFont systemFontOfSize:size];
    }
    return font;
}

+ (UIFont *)Regular_size:(CGFloat)size {
    UIFont *font = [UIFont fontWithName:@"PingFangSC-Regular" size:size];
    if (font == nil) {
        font = [UIFont systemFontOfSize:size];
    }
    return font;
}

+ (UIFont *)Medium_size:(CGFloat)size {
    UIFont *font = [UIFont fontWithName:@"PingFangSC-Medium" size:size];
    if (font == nil) {
        font = [UIFont systemFontOfSize:size];
    }
    return font;
}

+ (UIFont *)Semibold_size:(CGFloat)size {
    UIFont *font = [UIFont fontWithName:@"PingFangSC-Semibold" size:size];
    if (font == nil) {
        font = [UIFont systemFontOfSize:size];
    }
    return font;
}

+ (UIFont *)DINCond_size:(CGFloat)size{
    UIFont *font = [UIFont fontWithName:@"DINCondensed-Bold" size:size];
    if (font == nil) {
        font = [UIFont systemFontOfSize:size];
    }
    return font;
}

+ (UIFont *)Heavy_size:(CGFloat)size
{
    UIFont *font = [UIFont fontWithName:@"DINCondensed-Heavy" size:size];
    if (font == nil) {
        font = [UIFont systemFontOfSize:size];
    }
    return font;
}

+ (UIFont *)Light_size:(CGFloat)size
{
    UIFont *font = [UIFont fontWithName:@"PingFangSC-Light" size:size];
    if (font == nil) {
        font = [UIFont systemFontOfSize:size];
    }
    return font;
}
@end
